<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../../inc/conn.asp"-->
<!--#include file="../common/u.asp"-->
<%links="package"%>
<%
urlid=checkstr(inHTML(request("id")))
if urlid=""  then
response.Write("<script>window.location.href='/';</script>")
response.End()
else 
set rs=server.CreateObject("adodb.recordset")
sql="select * from PackageOrder where [order]='"&urlid&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.Write("<script>window.location.href='/';</script>")
response.End
else
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>17代购</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
</head>
<body>

<!--#include file="../../common/top.asp"-->





<div class="fullwidth">
	<div class="place ">
		<a href="/">首页</a> &gt; <a href="/user/package">包裹订单</a>
	</div>
</div>
<!--main-->
<div class="fullwidth bg1">
	<div class="main">
		
		
        
        <!--#include file="../common/left.asp"-->
        
        
		
		<div class="right_show f_r">
			<div class="title_4">
				<em><a href="/user/package/order/1" class="btn_18"></a></em><h2>付款完成</h2><div></div>
			</div>
			<div class="clear20"></div>
			<table class="stable stable_1 stable_2">
				<tr>								
					<th>商品名称</th>
					<th>数量</th>
					<th>重量</th>
					<th>入库日期</th>
				</tr>
                
                
                
				<%
					set rslist=server.CreateObject("adodb.recordset")
					sql="select * from PackageOrderDetail where [order]='"&rs("order")&"'"
					rslist.open sql,conn,1,3
					if not rslist.eof then
					do while not rslist.eof
					  
					  if rslist("typeid")="1" then
					     set rsproduct=conn.execute("select * from AuctionsOrder where id="&rslist("oid")&"") '产品
						 sqlField="WarehouseTime"
					  else
					     set rsproduct=conn.execute("select * from OrderDetail where id="&rslist("oid")&"") '产品
						 sqlField="StoragedTime"
					  end if
				%>
				<tr>
					<td><a href="" class="blue"><%=rsproduct("title")%></a></td>
					<td><%=rsproduct("qty")%></td>
					<td><%=rsproduct("weight")%>克</td>
					<td><%=rsproduct(sqlField)%></td>
				</tr>
                <%
				   set rsproduct=nothing
				rslist.movenext
				loop
				rslist.close
				set rslist=nothing
				end if		 
				%>
				
                
			</table>
			
		  <div class="clear20"></div>
			<table class="stable stable_1">
				<tr>
					<td class="select_td_1">商品合计重量</td>
					<td><%=rs("weight")%>克</td>
				</tr>
				<tr>
					<td class="select_td_1">邮寄方式</td>
					<td>
                    <%set rss=conn.execute("select title from InterTransCost where id="&rs("InterTransType"))
					 if not rss.eof then
					 response.write rss("title")
					 end if
					 set rss=nothing%>
                    </td>
				</tr>
				<tr>
					<td class="select_td_1">国际运费</td>
					<td><%=cdbl(rs("InterTransCost"))*cdbl(rs("Rate"))%>RMB</td>
				</tr>
				<tr>
					<td class="select_td_1">包装形式</td>
					<td>
                    <%set rss=conn.execute("select title from PackageCost where id="&rs("PackageType"))
								 if not rss.eof then
								 response.write rss("title")
								 end if
								 set rss=nothing%>
                    </td>
				</tr>
				<tr>
					<td class="select_td_1">包装材料费</td>
					<td><%=cdbl(rs("PackageCost"))*cdbl(rs("Rate"))%>RMB</td>
				</tr>
				<tr>
					<td class="select_td_1">是否加入保险</td>
					<td><%IF RS("IsUsedSafety")=true then response.Write "是" else response.Write "否"%></td>
				</tr>
				<tr>
					<td class="select_td_1">保险费</td>
					<td><%=rs("SafetyCost")%>RMB</td>
				</tr>
				<tr>
					<td class="select_td_1">转运服务费</td>
					<td><%=CDBL(RS("TransCost"))*cdbl(rs("Rate"))%>RMB</td>
				</tr>
				<tr>
					<td class="select_td_1">合计费用</td>
					<td><%=(CDBL(RS("TransCost"))+CDBL(RS("InterTransCost"))+CDBL(RS("PackageCost")))*cdbl(rs("Rate"))%></td>
				</tr>
				<tr>
					<td class="select_td_1">收货地址</td>
					<td><%=RS("Location")&" "&RS("CodeZip")&" "&RS("Name")&" "&RS("TEL")%></td>
				</tr>
			</table>
			<div class="clear20"></div>
			<%=RS("content")%>
            <div class="clear20"></div>
			
		</div>
		
		
	</div>
</div>

<div class="clear"></div>

<!--#include file="../../common/footer.asp"-->

</body>
</html>
<%
end if
rs.close
set rs=nothing
end if
%>